/*
 * Copyright (C) 2013-2015 Zhang Rui <bbcallen@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#import <UIKit/UIKit.h>
#import "CustomSlider.h"

@protocol IJKMediaPlayback;


@interface IJKMediaControl : UIControl

- (void)showNoFadeWith:(int)authenState;
- (void)showAndFadeWith:(int)authenState;
- (void)hide;
- (void)refreshMediaControlWith:(int)authenState;

- (void)cancelDelayedHide;

- (void)beginDragMediaSlider;
- (void)endDragMediaSlider;
- (void)continueDragMediaSliderWith:(int)authenState;

@property(nonatomic,weak) id<IJKMediaPlayback> delegatePlayer;

@property(nonatomic,strong)  UIView *overlayPanel;

@property(nonatomic,strong)  UIImageView *bgView;
@property(nonatomic,strong)  UIView *finishPlayView;
@property(nonatomic,strong)  UIButton *finishPlaybackBtn;
@property(nonatomic,strong)  UILabel *finishPlayTitle;
@property(nonatomic,strong)  UIButton *buyBtn;
@property(nonatomic,strong)  UIButton *OpenVipBtn;

@property(nonatomic,strong)  UIImageView *tryPlayBottomPanel;
@property(nonatomic,strong)  UILabel *bottomTitle;
@property(nonatomic,strong)  UIButton *bottomBuyBtn;

@property(nonatomic,strong)  UIView *ADPanel;
@property(nonatomic,strong)  UILabel *ADMin;
@property(nonatomic,strong)  UIButton *closeAD;
@property(nonatomic,strong)  UIButton *muteBtn;
@property(nonatomic,strong)  UIButton *ADFullScreenBtn;
@property(nonatomic,strong)  UIButton *ADbackBtn;

@property(nonatomic,strong)  UIImageView *topPanel;
@property(nonatomic,strong)  UIButton *backBtn;
@property(nonatomic,strong)  UILabel *titleLabel;
@property(nonatomic,strong)  UIButton *shareBtn;
@property(nonatomic,strong)  UIButton *screenShotBtn;

@property(nonatomic,strong)  UIImageView *bottomPanel;
@property(nonatomic,strong)  UIButton *playButton;
@property(nonatomic,strong)  UIButton *nextButton;

@property(nonatomic,strong)  UILabel *currentTimeLabel;
@property(nonatomic,strong)  UILabel *totalDurationLabel;
@property(nonatomic,strong)  CustomSlider *mediaProgressSlider;

@property(nonatomic,strong)  UIButton *selectDefinitionBtn;
@property(nonatomic,strong)  UIButton *selectCollectionBtn;
@property(nonatomic,strong)  UIButton *fullScreenBtn;

@property(nonatomic,strong)  UIButton *lockBtn;

@property (nonatomic,strong)UIView *midPanel;

/**
 *  mediaProgressSlider 增加手势
 */
@property (nonatomic,strong) UITapGestureRecognizer *tapGesture;
@end
